Optimal. Leaf size=317 \[ \frac {8 (a-b) b \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a d \sqrt {\sec (c+d x)}}+\frac {2 (a-3 b) (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a d \sqrt {\sec (c+d x)}}+\frac {2 a \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.35, antiderivative size = 317, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4307, 2878,
3077, 2895, 3073} \begin {gather*} \frac {2 (a-3 b) (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} F\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a d \sqrt {\sec (c+d x)}}+\frac {8 b (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\text {ArcSin}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{3 a d \sqrt {\sec (c+d x)}}+\frac {2 a \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2878
Rule 2895
Rule 3073
Rule 3077
Rule 4307
Rubi steps
\begin {align*} \int (a+b \cos (c+d x))^{3/2} \sec ^{\frac {5}{2}}(c+d x) \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {(a+b \cos (c+d x))^{3/2}}{\cos ^{\frac {5}{2}}(c+d x)} \, dx\\ &=\frac {2 a \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {1}{3} \left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {2 a b+\frac {1}{2} \left (a^2+3 b^2\right ) \cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {2 a \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}+\frac {1}{3} \left ((a-3 b) (a-b) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}} \, dx+\frac {1}{3} \left (4 a b \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1+\cos (c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}} \, dx\\ &=\frac {8 (a-b) b \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a d \sqrt {\sec (c+d x)}}+\frac {2 (a-3 b) (a-b) \sqrt {a+b} \sqrt {\cos (c+d x)} \csc (c+d x) F\left (\sin ^{-1}\left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{3 a d \sqrt {\sec (c+d x)}}+\frac {2 a \sqrt {a+b \cos (c+d x)} \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 6.98, size = 291, normalized size = 0.92 \begin {gather*} \frac {\sqrt {\sec (c+d x)} \left (4 \cos ^2\left (\frac {1}{2} (c+d x)\right ) \left (-4 b (a+b) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} E\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )+\left (a^2+4 a b+3 b^2\right ) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} F\left (\text {ArcSin}\left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )+b (a+b \cos (c+d x)) \sec ^3\left (\frac {1}{2} (c+d x)\right ) \left (\sin \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {3}{2} (c+d x)\right )\right )\right )+2 (a+b \cos (c+d x)) (a+4 b \cos (c+d x)) \tan (c+d x)\right )}{3 d \sqrt {a+b \cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1082\) vs.
\(2(283)=566\).
time = 0.33, size = 1083, normalized size = 3.42
method | result | size |
default | \(\text {Expression too large to display}\) | \(1083\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________